<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = ['张学友', '黎明', '刘德华', '郭富城']
            // for (let i = 0; i < arr.length; i++) {
            //     document.write(arr[i] + '<br>')
            // }
        document.write(arr.join('<br>'))
    </script>
</body>

</html>